// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'microcomponentname', 'field3', 'field1', 'field5', 'field7', 'field11', 'field9', 'field15', 'field13', 'field19', 'field17', 'field23', 'field21', 'field27', 'field25', 'field31', 'field29', 'field33', 'field34', 'formitem', 'formitem1', 'field35', 'field28', 'field18', 'microcomponentid', 'field22', 'field12', 'field20', 'field32', 'field26', 'field16', 'field24', 'field14', 'field6', 'field8', 'field2', 'field30', 'field4'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.microcomponentid;
    }
    set srfkey(value: any) {
        this.$DO.microcomponentid = value;
    }
    get srfmajortext() {
        return this.$DO.microcomponentname;
    }
    set srfmajortext(value: any) {
        this.$DO.microcomponentname = value;
    }
    get microcomponentname() {
        return this.$DO.microcomponentname;
    }
    set microcomponentname(value: any) {
        this.$DO.microcomponentname = value;
    }
    get field3() {
        return this.$DO.field3;
    }
    set field3(value: any) {
        this.$DO.field3 = value;
    }
    get field1() {
        return this.$DO.field;
    }
    set field1(value: any) {
        this.$DO.field = value;
    }
    get field5() {
        return this.$DO.field5;
    }
    set field5(value: any) {
        this.$DO.field5 = value;
    }
    get field7() {
        return this.$DO.field7;
    }
    set field7(value: any) {
        this.$DO.field7 = value;
    }
    get field11() {
        return this.$DO.field11;
    }
    set field11(value: any) {
        this.$DO.field11 = value;
    }
    get field9() {
        return this.$DO.field9;
    }
    set field9(value: any) {
        this.$DO.field9 = value;
    }
    get field15() {
        return this.$DO.field15;
    }
    set field15(value: any) {
        this.$DO.field15 = value;
    }
    get field13() {
        return this.$DO.field13;
    }
    set field13(value: any) {
        this.$DO.field13 = value;
    }
    get field19() {
        return this.$DO.field19;
    }
    set field19(value: any) {
        this.$DO.field19 = value;
    }
    get field17() {
        return this.$DO.field17;
    }
    set field17(value: any) {
        this.$DO.field17 = value;
    }
    get field23() {
        return this.$DO.field23;
    }
    set field23(value: any) {
        this.$DO.field23 = value;
    }
    get field21() {
        return this.$DO.field21;
    }
    set field21(value: any) {
        this.$DO.field21 = value;
    }
    get field27() {
        return this.$DO.field27;
    }
    set field27(value: any) {
        this.$DO.field27 = value;
    }
    get field25() {
        return this.$DO.field25;
    }
    set field25(value: any) {
        this.$DO.field25 = value;
    }
    get field31() {
        return this.$DO.field31;
    }
    set field31(value: any) {
        this.$DO.field31 = value;
    }
    get field29() {
        return this.$DO.field29;
    }
    set field29(value: any) {
        this.$DO.field29 = value;
    }
    get field33() {
        return this.$DO.field33;
    }
    set field33(value: any) {
        this.$DO.field33 = value;
    }
    get field34() {
        return this.$DO.field34;
    }
    set field34(value: any) {
        this.$DO.field34 = value;
    }
    get field35() {
        return this.$DO.field35;
    }
    set field35(value: any) {
        this.$DO.field35 = value;
    }
    get field28() {
        return this.$DO.field28;
    }
    set field28(value: any) {
        this.$DO.field28 = value;
    }
    get field18() {
        return this.$DO.field18;
    }
    set field18(value: any) {
        this.$DO.field18 = value;
    }
    get microcomponentid() {
        return this.$DO.microcomponentid;
    }
    set microcomponentid(value: any) {
        this.$DO.microcomponentid = value;
    }
    get field22() {
        return this.$DO.field22;
    }
    set field22(value: any) {
        this.$DO.field22 = value;
    }
    get field12() {
        return this.$DO.field12;
    }
    set field12(value: any) {
        this.$DO.field12 = value;
    }
    get field20() {
        return this.$DO.field20;
    }
    set field20(value: any) {
        this.$DO.field20 = value;
    }
    get field32() {
        return this.$DO.field32;
    }
    set field32(value: any) {
        this.$DO.field32 = value;
    }
    get field26() {
        return this.$DO.field26;
    }
    set field26(value: any) {
        this.$DO.field26 = value;
    }
    get field16() {
        return this.$DO.field16;
    }
    set field16(value: any) {
        this.$DO.field16 = value;
    }
    get field24() {
        return this.$DO.field24;
    }
    set field24(value: any) {
        this.$DO.field24 = value;
    }
    get field14() {
        return this.$DO.field14;
    }
    set field14(value: any) {
        this.$DO.field14 = value;
    }
    get field6() {
        return this.$DO.field6;
    }
    set field6(value: any) {
        this.$DO.field6 = value;
    }
    get field8() {
        return this.$DO.field8;
    }
    set field8(value: any) {
        this.$DO.field8 = value;
    }
    get field2() {
        return this.$DO.field2;
    }
    set field2(value: any) {
        this.$DO.field2 = value;
    }
    get field30() {
        return this.$DO.field30;
    }
    set field30(value: any) {
        this.$DO.field30 = value;
    }
    get field4() {
        return this.$DO.field4;
    }
    set field4(value: any) {
        this.$DO.field4 = value;
    }
    // 界面主键标识
    get microcomponent() {
        return this.$DO.microcomponentid;
    }

    set microcomponent(value: any) {
        this.$DO.microcomponentid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }
    get formitem() {
        return this.$DO.formitem;
    }

    set formitem(value: any) {
        this.$DO.formitem = value;
    }
    get formitem1() {
        return this.$DO.formitem1;
    }

    set formitem1(value: any) {
        this.$DO.formitem1 = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            microcomponentname: this.$DO.microcomponentname,
field3: this.$DO.field3,
field: this.$DO.field,
field5: this.$DO.field5,
field7: this.$DO.field7,
field11: this.$DO.field11,
field9: this.$DO.field9,
field15: this.$DO.field15,
field13: this.$DO.field13,
field19: this.$DO.field19,
field17: this.$DO.field17,
field23: this.$DO.field23,
field21: this.$DO.field21,
field27: this.$DO.field27,
field25: this.$DO.field25,
field31: this.$DO.field31,
field29: this.$DO.field29,
field33: this.$DO.field33,
field34: this.$DO.field34,
field35: this.$DO.field35,
updatedate: this.$DO.updatedate,
microcomponentid: this.$DO.microcomponentid,
formitem: this.formitem,
formitem1: this.formitem1,
        }
	}

}